package com.example.server.request

import cn.hutool.http.useragent.UserAgent
import cn.hutool.http.useragent.UserAgentUtil
import io.ktor.server.request.*

/**
 * 从请求头中获取操作系统和其他信息
 */
val ApplicationRequest.userAgentDetail: UserAgent? get() = UserAgentUtil.parse(userAgent())

